Keeping the volume down and being careful where you aim the sound hole of your guitar can help, but it's a precarious situation to be in while performing. Using pickups instead of the microphone will stop feedback. Alternatively, purchasing a sound hole cover would help, too, but it will impact the sound of your guitar when you use it acoustically.