17 Million Spray Particles in Liquid Sim. To many, Help

Im trying to simulate a beach and when i bake my simulation i get 17 million particles for spray and foam, I baked it at 512 resolution and yes i know thats alot but i followed tutorials and they were not this laggy, basicly makes it imposible to move the viewport with that many particles, even with an rtx 4090
Is there anyway to controll the ammount of particles in mantaflow?

If you hover your cursor over the settings, you get an explanation of what they do. If I rely on these explanations, those settings should control the amount of spray particles, with higher numbers resulting in fewer particles:

If I were you, I would first test these settings on a lower resolution sim before trying to change them on a massive 512 domain.