I am sorry you are struggling. Sleep deprivation is hard to deal with.
People differ in their reaction to medications , so what may generally for most people doesn't for all or it may take longer for some people before they respond. It can be trial and error to find the right med at the right dose that works the best.
Sharing your experience with your psyc can help with the next step. Perhaps a different dose, perhaps a different med, perhaps wait a bit longer.
It can be difficult to be patient with sleep deprivation, but keep on trying with your psyc.
All the Best!