i would tend to agree with jeannie....sounds like an anxiety attack or panic attacks...i get those under extreme stress or pressure and have had similiar experiences to what you are describing.....and if you are expecting a child and looking for a new job, those could be stress triggers...not all stress is bad...my husband recently got approved for a major surgery and i spent last weekend much like what you described..in a massive panic attack....perhaps the barking just was the last straw in your head....
try some natural remedies for sleep...and definately a massage or hot bath should help you try to relax....
hope you feel better and are able to get some sleep and relaxation....