be off the rails
1. To be in a state of chaos, dysfunction, or disorder. Our project has been off the rails ever since the manager up and quit last month.
2. To be crazy, eccentric, or mentally unhinged. I think you should cut back on your drinking—you were totally off the rails last night!