Forget it, Just forget it.
You had the same problem which happens to almost 80% of youth when they start realizing some factors about sore life.
You did not mention the happenings before the episode you mentioned.
There are several causes behind such anxiety
Make sure, you are not alone. Listen to Expert opinion and believe it, because he is an expert and not you.
Before consulting a psychiatrist
, go for counseling sessions with a qualified psychologist
Wishing anxiety free future.