Depends on if you want to do it right or just kinda patch it back up.
There should be a 3/8” gap between the stones and the decking. You could grind out 3/8” of the mortar that’s there all around the pool making sure to go through to the soil, then fill that gap with a flexible sealant like sikaflex. It may be hard to cut deep enough though.
Or you can try grinding out the cracked areas and adding back mortar to replace it, but it’ll likely crack again,