Very simple mod that changes Vanilla Flickering happening over last 10 seconds of Night Vision, to gentle fade out over 5 seconds.

Shouldn't cause any issues compatibility issues except for mods trying achieve the same thing:
Only affected method is: GameRenderer.getNightVisionStrength(); at TAIL.
How to Install No Night Vision Flickering (Mod)
No Night Vision Flickering by semper-idem is verified for Fabric across Minecraft versions 1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.3, 1.20.4 (latest release: 0.1.5, file size: 17 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.3, 1.20.4) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded No Night Vision Flickering file into your Minecraft
.minecraft/modsfolder and launch the game.