Ubuntu 24.04 LTS uses Linux kernel version 6.8.x and it has a bug that causes screen flickering on Intel iGPU. The screen mainly flickers when you hover at the corners of your screen.
The issue is fixed in Linux kernel 6.10.x. So, the best solution is to upgrade the kernel version of Ubuntu 24.04 LTS. At the time of this writing, the latest version of Ubuntu mainline kernel is 6.12.3.
Downloading Ubuntu Linux Mainline Kernel v6.12.3
You can download the Ubuntu mainline kernel v6.12.3 from the official Ubuntu mainline v6.12.3 link.
From the Ubuntu mainline kernel v6.12.3 page, download the 4 marked files.

Installing Ubuntu Linux Mainline Kernel v6.12.3 on Ubuntu 24.04 LTS
Once the Ubuntu Linux mainline kernel v6.12.3 DEB packages are downloaded, open a Terminal and navigate to the ~/Downloads directory.
$ cd ~/Downloads
Update the APT package repository cache with the following command:
$ sudo apt update
To install the Ubuntu Linux mainline kernel files, run the following command:
$ sudo apt install ./linux-*.deb
Once the Ubuntu Linux mainline kernel files are installed, reboot your computer for the changes to take effect.
$ sudo reboot