This sounds like a manic episode with mixed features. That basically means you're manic, but you have features of depression mixed in with it. Racing thoughts along with agitation. Decreased need for sleep, irritability, etc.
Mixed episodes can be quite difficult. I'm glad you're going in to see your doctor. I hope this resolves for you soon.
Mixed Bipolar Disorder Symptoms, Causes, and Treatments