Oh blimey! There is nothing worse than lying in bed and having pain! I really sympathise. Can you get hold of a heat pad? Sometimes they can help with pain.
One of CRPS symptoms is burning nerve pain so heat (or cold actually) doesn’t help. I actually sleep every night with my leg outside of the duvet
The purpose of life is not to be happy. It is to be useful, to be honorable, to be compassionate, to have it make some difference that you have lived and lived well.