Greetings.
Regarding STIs, your encounter wasn't risky. STIs shouldn't be your concern: you have a much bigger issue, which may possibly ruin your life.
Losing sleep after an episode of sex isn't quite normal, right? Your last year episode shows your anxiety is out of control and this episode shows it is not getting better.
You need help, now. Look for counseling before it gets too late.