My mental state switches between social anxiety and feelings of worthlessness, isn't that weird?

Get evaluated? Find a psychologist or a counselor who will help you figure out what events trigger your anxiety, what behaviors are resulting from that and what thoughts/cognition you experience. Consider meds if can't function. In a nutshell, anxiety-provoking events might interfere with performance leading to feeling worthless.