Hello there, There is insufficient information to conclude, however, with the information given, it seems like you have obsessive behavioral patterns. It would be beneficial to visit a psychologist who would help you to try and reduce these repetitive behaviors and the anxieties that might be arising because of them. Further, you can make a strict schedule for yourself, such that you account for what you will be doing every hour of the day. This way you will keep yourself busy and will have lesser time to devote to the compulsive behaviors.
Good luck
Next Steps
Consult a Psychologist and Psychiatrist.
Health Tips
Make a schedule and keep a diary to see how much you're being able to follow it.