Is it bad to format your ssd many times?
Formatting your SSD is not particularly different from writing to it. I wouldn't worry about it.

If you'd like to know more about SSD lifetimes, check out this question:How long will an Apple SSD last?