I believe that you have an injected engine with a MEFI controller. (If not ignore the following....) All of the suggestions you have heard are sound, but what you should first do if determine the model of you controller (likely an MEFI 4) and get a diagnostic manual for it. If you look they are available for free on the internet. You will find over 300 pages (print double sided!) of invaluable information on how your engines work, along with diagnostic procedures on most problems, including yours.
Since, as you have been advised, fuel starvation is the most likely candidate, you start with the filters, which is always a good thing to do anyway. If that change does not cure it, you should next check fuel pressure, underway, to see if it falls off when the problem occurs. The manual will give you the correct pressures. The best (cheapest) source for a gauge is to borrow one from a friendly auto parts store that has tools for loan or rent. Failing that, buy a cheap one at Harbor Freight or on the net. I got a $30 one at Harbor Freight, on sale for $10. Of course the actual gauge part leaked gasoline (cheap tools are not always any good) so I had to buy, for $10, a good quality 0-100psi head that is readily available. Since the rest of the kit is just a hose with a female Schraeder valve connector (larger than the one on a tire gauge) another possibility is to go to a shop that fixes air conditioners and get a hose and fitting used to fill them with refrigerant. That fitting is the correct size.
If your tests show falling pressure when the issue occurs, then you can focus on that. Start with the easy stuff (anti-syphon valve) and move on the the hard stuff (fuel pumps). Another thing that is a possibility is some clogged injectors. They really should be pulled and sent out for testing and cleaning every few years, unless you boat is operated four seasons. They crud up if not used. Cost of bench testing and ultrasonic cleaning is around $10 to $15 each. And keep in mind that if it is fuel starvation, lean engines run hot and burnt valves can happen if you do prolonged running in this condition.
If you have good fuel pressure, and your injectors are flowing to spec, then you need to move on to the many other possibilities you will find in the manual. Most of them require a scanner (must be marine, automotive types will not work) so unless you borrow or buy one you will need to find a competent, well equipped engine mechanic.
Good Luck.