Failed to keep a level head and got thrashed (7)
I believe the answer is:
flailed
'thrashed' is the definition.
('flail' can be a synonym of 'thrash')
'failed to keep a level head' is the wordplay.
'to keep' is an insertion indicator.
'head' suggests taking the first letters.
The initial letter of 'level' is 'l'.
'failed' enclosing 'l' is 'FLAILED'.
'and got' is the link.
I am not very happy about this link. Some or all of it may belong to another bit of the clue.
Can you help me to learn more?
(Other definitions for flailed that I've seen before include "Swung wildly" , "Thrashed around" .)