thanks a lot
certainly in British English this doesn't mean to annoy someone, rather it means to scare someone normally with nervousness rather than terror.
(or literally to give them diarrhea)
eg. The English exam next week is giving me the s***ts
would mean that you were very nervous about the exam.
compare "To Sh*t Bricks"
Not a teacher, but a native (British) English speaker.
You're getting up my nose.
You're getting on my t*ts.