Don't panic yet, let's start with the simplest. Is there anything sharp in the tank that may have caused this if being too close to them? If you could fill out the sticky below as detail as possible, we can try to figure out what's happening to him.
What size is your tank?
What temperature is your tank?
Does your tank have a filter?
Does your tank have an air stone or other type of aeration?
Is your tank heated?
What tank mates does your betta fish live with?
What type of food do you feed your betta fish?
How often do you feed your betta fish?
How often do you perform a water change?
What percentage of the water do you change when you perform a water change?
What type of additives do you add to the water when you perform a water change?
Have you tested your water? If so, what are the following parameters?
Symptoms and Treatment
How has your betta fish's appearance changed?
How has your betta fish's behavior changed?
When did you start noticing the symptoms?
Have you started treating your fish? If so, how?
Does your fish have any history of being ill?
How old is your fish (approximately)?