it sounds like what you have are canker sores. the exact cause of canker sores in unknown. they last 7-10 days and heal on their own. there are several over-the-counter medications that will cover and numb the sores so they don't hurt while you're eating.
i occasionally develop mouth ulcers. it happens when i've eaten highly acidic foods. are there any treatment options?