Except that yes, math is about precision and rigor, and yes, the square root of negative numbers is totally allowed (https://en.wikipedia.org/wiki/Square_root#Square_roots_of_negative_and_complex_numbers) and yes, math totally allows for statements with multiple solutions.
sin(x) = 0 also has infinite solutions and yet it's totally legal for x to make an equation like that.