I have recently begun experiencing the same problem. The problem seems to be temporarily fixed after a restart, but if the computer moves too much while it is on with the lid closed. Once it decides to wake up with the lid closed, the problem is consistent.
Any advice on how to solve this issue would be greatly appreciated.