I still had flickering issues with the monitor so I purchased a premium high-speed certified HDMI cable for 4k.

Hopefully, the new HDMI cable fixes the problem.