Green’s Dictionary of Slang

chew the carpet v.1

also eat the carpet

[1950s+] (US) to lose emotional control, to suffer a temper tantrum.