I think you should set up a "wind down" ritual. Stop coding an hour before bed, and give yourself some time to relax by reading a book or taking a bath, etc.
(Easier said than done though, it can be hard to stop programming once you get into it!)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think you should set up a "wind down" ritual. Stop coding an hour before bed, and give yourself some time to relax by reading a book or taking a bath, etc.
(Easier said than done though, it can be hard to stop programming once you get into it!)