he often suffered extreme mental breakdowns caused by a denial of bathroom breaks and a total lack of sleep , going into maniacal , improvisatory rants for hours at a time while popping speed capsules like one-cent candies and banging objects against the wall in what he thought was musical rhythm but was actually a deafening cacophonous racket .