In no mechanic BUT I owned a boat roughly the same year with a Merc. 5.7 and spent an entire summer chasing the same problem. It was so infuriating that I would only run it for 30 minutes, then docked or anchored for a few hours. After doing that, it started and ran fine.
Finally figured it out-...