Green’s Dictionary of Slang

chew the carpet v.1

also eat the carpet

to lose emotional control, to suffer a temper tantrum.

J. Dickson Carr Reader Is Warned n.p.: ‘Steady on!’ advised Dr Sanders, in genuine concern. ‘You'll have him chewing the carpet in a minute’.
[US]J.D. MacDonald Price of Murder (1978) 91: The first major setback in your whole life [...] Did you chew up the carpets and run around the walls?
[US](con. WWII) L. Cameron Dirty War of Sergeant Slade (1967) 119: The guy would be chewing the carpet before he found out who the big-shot collaborator was.
[UK]N. Griffiths Grits 92: Av bin cookin up me old cottons fer three fuckin deys, eatin-a fuckin carpets mun, goin off me fuckin trolley.
[UK]Guardian G2 24 Aug. 7: Hitler wasn’t a carpet-chewing madman, at least not until the end.