Note: In the whole post, by refresh rate, I mean the refresh rate the monitor has. The problem: It goes down, lower than it should be, and that's only because the graphics card does not send more frames per second to the monitor. The monitor is fine, the graphics card is fine (tested on Windows), but the software / configuration is wrong.
For some reason the refresh rate drops down to 80 when Firefox's focused and G-Sync is turned on. Have a look:

It's easy to see that the refresh rate dropped down to 80 when I focused Firefox which is a maximized window (gsync for every window is turned on). I have never noticed a drop before, so it must have happened in some Firefox update. Definitely not a hardware issue.
The mouse looks really ugly when the refresh rate is thus low.
I'm using the propietary driver, NVIDIA G-Sync and VRR Control.
I've also noticed that the screen re-connects when there's no Firefox window open at all, and then I start Firefox.
When I turn off VRR Control I get weird flicker issues. The screen's brightness sometimes drops off for ~100ms multiple times. That's a known problem (Samsung software engineers failed, I don't recommend the Samsung Odyssey series).
On Windows everthing's fine?
--- this is from earlier, I won't edit this. I didn't know Firefox was affected only there yet ---
Further research, I found out that G-Sync is dropping my frame rate. By turning G-Sync off, I achieved permanent 239FPS:
1200 frames in 5.0 seconds = 239.966 FPS
1200 frames in 5.0 seconds = 239.960 FPS
1200 frames in 5.0 seconds = 239.962 FPS
1200 frames in 5.0 seconds = 239.958 FPS
1200 frames in 5.0 seconds = 239.960 FPS
However I'd like to use G-Sync since it can avoid screen tearing without any lag.
Using Ubuntu 22.04...
+---------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:08:00.0 On | N/A |
| 45% 48C P0 31W / 125W | 449MiB / 6144MiB | 6% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+---------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 8575 G /usr/lib/xorg/Xorg 194MiB |
| 0 N/A N/A 8999 G /usr/bin/gnome-shell 67MiB |
| 0 N/A N/A 11678 G /usr/bin/nextcloud 1MiB |
| 0 N/A N/A 13782 G ...x-106.0b6/firefox/firefox 178MiB |
| 0 N/A N/A 75261 G telegram-desktop 5MiB |
+---------------------------------------------+
There's no g-sync tag for my question :(