How to fight on overthinking?

I'm a person that overthinks so much, it's like 3 a.m. in here and I can't literally sleep because of overthinking, can someone advise me for what to do because I'm literally 14 and don't know how to fight it