From the perspective of traditional Chinese medicine, this should belong to some symptoms, such as imbalance of yin and yang in the body and inability to hide the mind. There are also some symptomatic drugs that can also play some roles. But to eradicate it completely, you can only adjust your body and mind by yourself, and it is not difficult to get out after finding the physiological and psychological rhythm!
Physical adjustment is to go out to exercise more, bask in the sun, and knock on the joints such as cervical vertebrae, spine, lumbar vertebrae and shoulders. There will be places where you feel particularly sore, which is the focus of your body. Therefore, you should do some targeted exercises repeatedly, such as yoga, parallel bars, Tai Ji Chuan and standing piles, to relax your joints, make your body feel relaxed and improve your yang. Don't stay at home! If the problem is serious, you can use some drugs to soothe the nerves and tonify yang, but don't rely on it. If you find it useful, use some. If you think it's useless, don't use it!
Psychologically, keep quiet every day, nourish your spirit internally, and relax psychologically when you think about something uncontrollably in your mind. Don't try to control yourself from thinking, and don't deliberately chase after thinking. Slowly, you will find that you don't want to, and it will be easy! Remember, the key is to relax and not have hatred and anger. If you really can't relax yourself, you can try to repent your negative psychology such as hatred and greed, which will be good!
For people with severe symptoms, it is necessary to make long-term preparations for such physical and psychological adjustments. After finding the rhythm, you will find that your body and mind are more and more relaxed, and you can come out slowly!
In addition, bad habits such as staying up late, sedentary, masturbation and psychosexuality are very harmful to the body and mind, which will greatly aggravate obsessive-compulsive disorder and need to be completely quit. If you have bad habits in this area, you can go to Baidu to quit!