My daughter was "going nuts" regularly until about school age, and then only rarely (less than once a month) until she was about 6 or so. To imagine "going nuts", think of a bad tantrum, kicking, hitting, etc., except that the kid is completely detached from this world and unreachable, not there - even at 6. At 6 it was more 'freaked out', than mad, no hitting and kicking. As a toddler, this was often triggered by us not understanding what she wanted (e.g., she wanted to go out, but we were going in, and didn't explain why). What kept me sane was talking to my co-worker who had three sons, the middle of which had similar 'fits'. Dad had on occasion had to throw him in a shower stall so that he is confined in a relatively safe space, and then just sit in the bathroom until it passes. Mom on occasion had to buckle the kid up in the car seat in their garage, and just wait it out. (My husband on occasion had to hold our daughter in a 'bear hug' for 20 minutes until she calmed down, which is much the same thing.) The other two sons never had any such problems, and this middle kid eventually grew into a nice, kind boy. So that kept me sane. My daughter also grew into a nice, kind girl.
My son had a different problem: he did whatever he wanted to do, and refused to submit to discipline. So, each time-out was a 45-minute physical struggle. He not only kicked, but also scratched and bit. He was always present in this world, though, just a bit wild. At about 4.5, he turned into a well-behaved little boy. The less we disciplined, the better he behaved, it was a virtuous cycle, but you can't get there until there is some degree of collaboration. Some kids just need time for their brain to mature.