Nor the diagnosis reached by the physician whoi helped you. That being said pain
results from nerve compression secondary to inflammation. Since the pain
develops after you are lying down after a while the etiology must have something to do with a problem causing developing compression on inflammed nerves. The compression probably comes from lymphatic fluid. The could be due to lack of muscle tone, venous preload, or kidney malfunction.