Hi there,
Welcome to DWD. Have you ever been referred to a psychiatrist? Speaking from a personal perspective, this was the turning point for me. The correct medication can be life changing. It sounds like you are being fair with work and that they are being very supportive. Could you ask for a couple of months off to get the help you require?