Because you mention marine engine, it reminded me of an a problem an old friend had with an older merc 150 outboard. Same symptoms. Sluggish or died when going into gear or trying to accelerate. After changing fuel lines, inline filter, carb rebuild, we found an engine mounted fuel screen housing that, once the screen was cleaned out, it cleared up all his problems. I don't suggest you have the same issue, but it does sound as if it is not getting enough fuel under load.