It is difficult to know what is wrong in your situation. The stress of the custody battle may be a significant contributor to your symptoms. I understand that you find it difficult to be honest with a counselor because of the custody situation but your self-treatment plan is proving to be ineffective.
The most efficient solution is to utilize the services of a mental health professional. What you share during your therapy sessions should remain confidential even in the case of a custody battle. Consult your lawyer regarding confidentiality laws. He or she could clarify what information, if any, a mental health professional can legally divulge in court. Having a thorough understanding of the confidentiality laws could assist you in knowing what information is appropriate to self-disclose during therapy sessions.
In the meantime, you may also consider other forms of treatment such as group therapy or a support group for divorced parents who also are struggling with custody issues. Alcoholics Anonymous (AA) meetings can also be a great source of support. During stressful times, some individuals find it useful to utilize the local religious counseling services. You may also want to consider stress reduction techniques such as relaxation, meditation, yoga, or strenuous exercise. The aforementioned suggestions may not “solve” your problems but they may serve to temporarily decrease your high stress levels. I wish you the best of luck. Please take care.