Firstly, you are not alone. If you look at the Groups you will see that there is a group of people who have, are or will suffer the same or similar pain and anxiety.
I suggest following the link below and moving to September. I know it isn’t identical wording to your description but it boils down to the same thing i.e. feeling under attack by wrong and evil thoughts.
There are many people who feel strong urges so out of line with their beliefs, who are frightened by the violence of their thoughts. Therefore, there is hardly one priest who has not heard someone taking the sensible courageous action of either taking this to the Sacrament of Reconciliation or asking for Spiritual Guidance.
In the meanwhile, you may like to do what I do which is as soon as I realise what is happening, I apologise to God and ask for forgiveness. If that doesn’t hold it off, I pray for others breaking the prayers down to specific groups of lost souls and at the same time find something to do that needs attention from my brain.
I will pray that God will bless you, keep you safe and provide you with the Spiritual Direction you need. Note, I said "“need” not want, so don’t be surprised if the help still requires a lot of work on your part or isn’t want you think you need.
God bless you.