Insomnia is screwing with you. Lack of proper sleep erodes your mental state. If you were to get anything looked at, that would be your first stop.
Your local physician. They'll probably put you on sleep aids first. Try them out for at least two weeks. If it's not helping you get into a sleep rhythm or your quality of sleep isn't improving, report that back to your doctor and they'll recommend the next step.