I used to struggle with scruples, too. Something that helped me very much was the single best piece of advice I ever received in Confession. At the time, I was going to Confession once or twice per month.
I explained my struggles to the priest. In particular for me–and common in those with scrupulosity–was the idea that I had committed a mortal sin and somehow deliberately put it out of my mind or downplayed it so that I could receive Communion without going to Confession, thus making a sacrilegious Communion. This happened nearly every week for some time, and with things that were, 95% of the time, simply not mortal sins, whether from not being grave enough matter or from not fully consenting. Bear in mind that this advice was directed specifically to me, so YMMV.
This priest said that in the future, if I could put my hand on a Bible and swear before God that I had committed a mortal sin, then I should not receive Communion. However, if I could not do that because I wasn’t sure, then I should receive Communion and mention the sin at my next Confession. Period, full stop, that was it.
It worked, and I must say that my scrupulosity diminished very quickly after that.