First thing I would suggest is that you check and adjust your valve clearances, It is easy to do, and should be done from time to time anyway, and costs nothing.
Briggs and Stratton Valve Clearances
If they are too close, the valves can expand and the engine loses compression until it cools back down. Being a twin, it can run on one cylinder, so the likelihood of both
cylinders losing compression at the same time is remote, but still, checking the valve clearances is free and easy to do. And while the valve covers are off, rotate the engine by hand, and watch each rocker arm, and see if their travel distances are all the same. Briggs has a lot of cam problems in that time range.
Otherwise, it could be an intermittent wire problem, so you will have to be prepared to diagnose it the next time the problem arises.
When the engine starts cutting out, pull the choke closed, and see if it helps, that would indicated fuel starvation. And when it stops, remove the air cleaner and spray
carb cleaner in the carb throat, and if it starts right back up, then it is a fuel problem.