They gave you correct information. Kidney stones form when the stuff they are made of gets too concentrated in the urine. This happens when we’re not hydrated well enough. You’ll be able to take better care of your newborn if you stay well hydrated. However crappy you feel right now, getting dehydrated will make it worse.
I hope you feel better very soon!