The ones where you can get a nut on the top drill out and fit a nut with a high tensile spring washer each end.
Mower companies use self tappers because they are cheap and in particular cheap to install .
The holes will be flogged out if they are falling out this quickly so no goop is going to keep them in.
Some times you can get away with a variation of the match in a hinge screw trick by shoving some full soft copper or aluminium wire up there then screwing the bolts back in.
Otherwise the engine will have to come out and the holes mechanically cleaned then chemically cleaned .
After that you can use the thread restoring resin of your choice but Davcon beats them all hands down
After that you need to put a tight fitting washer between the engine & the mower floor so as you tighten the bolts the goop has the washer to bear against rather then extruding back out the hole .
By not the bolt holes in the mower itself are most likely quite oval as well and probably have welts that will need to be ground off so the engine sits flat against the frame.