This issue happened before quite often on the Intel GPU. The 16" had this already on Catalina and also Big Sur.
You can try to set the GPU to dedicated and see whether it goes away.
AFAIK this is mostly due to Apple's aggressive frequency down-scaling on the iGPU which then doesn't scale up fast enough when you need it and then causes lags.
The issue is even worse when you run virtual machines and use the iGPU. But everything works more or less fine on the AMD GPU.