Need Help My Game Keeps Crashing

I Keep Getting Unable To Allocate Memory Size 8388608 Every Time I’m Playing And It’s Really Annoying Cause I Cant Enjoy The Game I Have A AMD Ryzen 7 5800X
8 Cores - 3800 MHz With AORUS GeForce RTX™ 3060 Ti MASTER 8G, With 16GB [8GB x 2] DDR4-3200MHz ADATA XPG SPECTRIX D41