If you are mechanically inclined you can do a top end rebuild leaving the majority of the motor and everything else in place.
First you should remove the spark plugs and RAVE valves, then hand rotate the PTO flywheel so you can inspect the sides of each piston. You will probably see mangled rings and melted piston through the ports, since the pistons usually get warmest on the exhaust side. Or if a hole in the piston is on top, you could see it with a borescope.
Remove the head and cylinders, leaving the exhaust manifold in place. Pistons and sleeves (if needed) can be purchased many places online. Since pistons are aluminum and sleeves are steel, the sleeve may only need honing, depending upon the damage. You probably want to get a local machine shop to replace sleeves if needed, or they can be bored slightly and purchase oversize pistons. I have also heard of people replacing the sleeves by just heating the cylinders in the kitchen oven. If you end up going oversize on the pistons, you need to trim the RAVEs a bit to avoid conflict.
The bottom end of the 951 is very sturdy and can handle a top end rebuild fine unless there are a lot of hours on the Doo. Also, make sure you can account for all pieces of the steel piston rings, since falling into the bottom end can cause damage. Usually the rings are just mangled, or melted into the piston.
I have done one top-end rebuild that just needed a new piston and honing in one cylinder. Another rebuild needed a new sleeve.
To avoid this type of overheating and piston melting, I would suggest limiting WOT runs to under a minute or so, then backing off to allow some cooling. That is where I have had problems since ... "there once was a time the lake was so glassy" that LONG periods of WOT were achieved. Since there is no thermostat (like a car), the calibrated water flow orifices are a compromise. You want the motor to get warm enough to operate well, so the water flow is restricted.
The motor could also be running lean to cause overheating. This could be from a fuel pump that is weakening so as not to provide enough flow at WOT. Also, these DI are made to run on 91 octane fuel, so if you run a lower grade, the knock sensor allows the MPEM to adjust timing to accommodate. If the knock sensor is faulty, timing is not adjusted, and the motor will overheat.