Contaminated fuel could have been the problem. Apparently that’s a known issue in the maritime industry, particularly if the fuel originated from China.
Common problem with diesels on the water. But the smart guys use multiple filters, this boat was clearly not run by smart guys. That could easily be why it starts and stops as well a fuel problem.