3D printer shaking loudly on X-axis?

My 3D printer occasionally exhibits a loud shaking noise on the X-axis. Unfortunately, I haven't been able to identify a clear cause for this sporadic shaking. However, the problem doesn't always occur, and after a short time, the printer usually returns to normal and prints flawlessly. I have an Anycubic Mega X that's almost 3…