You were obviously overloading your motor driver. The link you post says "10A", you probably have to add heat sinks to those MOSFETs.
If that are indeed IRF3205, on resistance is 8 mOhm so that'd be 800 mW at the rated 10A. That'll get a TO220 without heat sink really hot. If exposed to the air probably not hot enough to break, but it will shorten the life span of the part. With a small heat sink 800 mW is fine, just a good sheet of aluminium screwed to the row of four is most likely enough..
If your motor really runs at ~27A (as long as your power supply can deliver it that's the current you're going to get) they'd be dissipating almost 6W at 100% duty cycle. Not going to last long without a big heat sink, and the PCB layout doesn't really have enough space for that.