I went through this myself several years ago. What you urgently need to do is get a spiritual director who you can trust and obey him when it comes to his judgment on whether something is sinful or not. This will help you tune your own conscience and let go of the constant anxiety of sin.
The second next best thing you can do is pick up pick up St. Alphonsus Liguori. He is not only a Doctor of the Church, but also the Patron Saint of moral discernment and of the scrupulous. He suffered from an excruciating anxiety of sinning throughout his early life, yet he grew to became the uttermost master of moral discernment the Church has ever had - managing to handle thorny issues while avoiding both the danger or rigorism, and that of laxism. All his moral works and judgments were sanctioned by the Vatican to be free of error in 1854, and his work even helped free the Cure of Ars from scrupulousity he suffered himself.
His best and most complete work is his Theogia Moralis, two volumes of which you can find on Kindle. They are awesome works, yet their length is quite prohibitive (600 pages each). It's better if you start by reading a short 100 page primer by the name of Moral Choices: The Moral Theology of Saint Alphonsus Liguori. I guarantee you that reading it through will free you from the anxiety you've been suffering. [There's a caveat though.. The author is quite knowledgeable when he speaks of Liguori, yet in 1st chapter he attempted a revisionist explanation of confession that is simply unforgivable on how wrong it is. I advise you to skip it and search any other Catholic medium for a summary of the origins of confession instead].
Totally! St. Francis of Sales and St. John Paul II basically repeat this advice in Introduction to the Devout Life and Love and Responsibility, respectively.
And yeah! St. Alphonsus Liguori was himself terribly scrupulous for a time and is a great guide for us that also had to go through it. A great summary of his thought can be found in Moral Choices by Fr. Rey-Mermet [though you should skip/dismiss Ch.1--the author's alleged 'history of confession' is downright heretical].