A few years ago I had a Pink Tail display the exact same behavior. A few months he would just lay wedged between to rocks. Then, during feeding time, he'd snap out of it and eat. Ended up going back to "normal" eventually, but occassionally did this until it died three years later.