trouble sleeping with pain