I tried to create an Ocean using this code but the more recent threejs library and it fails (it fails in 127 and I checked that it happens in any version after 102 included).
The issue seems that there is a feedback loop in the ocean/mirror textures.
The closest info I found was:
https://stackoverflow.com/questions/62074822/webgl-feedback-loop-formed-between-framebuffer-and-active-texture
But I am not able to fix it