It helps if you have a way to monitor scrolling events and a way to disable the problematic pointer device temporarily. I do not know how you do it in Windows and macOS. Even in Wayland it seems to be impossible to disable only a pointer device, if the device is pointer & keyboard combo. But in X11 it can be handled well.
Best posts made by jarnos
-
RE: How to disable extremely irritating CTRL + wheel zoomingOpera for computers
-
RE: How to disable extremely irritating CTRL + wheel zoomingOpera for computers
If you use X, you could use block-scroll-mod-x11 to prevent unintended zooming system-wide.
Browser only solution would be Disable Scroll Wheel Zoom Chrome extension. I suppose you could use Install Chrome Extensions extension to use the Chrome extension in Opera. You might need to modify the extension, if your browser uses other key than Ctrl for zooming, see here.