As has been mentioned. Smaller and less resonant basses will tend to be more feedback resistant. I have a Tacoma Thunderchief, which has a fairly large body and a very light build, as I believe it was designed to be as loud as possible acoustically. I actually sounds fabulous amplified, but gain before feedback is pretty limited.
My Thunderchief has the Fishman preamp like this:
By fiddling with the controls I can get a decent sound at what I consider moderate volume. I have done gigs with a drummer with no problems. However, the drummer was not bashing the kit.
I would start by flipping the phase control a few times. This control flips the polarity of the bass's output. The best position depend on the polarity of the amp and how far the bass is from the speaker. As has been said, the phase switch doesn't really fix the problem, but it can move the problem so it doesn't overlap with another problem. Also, it may improve the sound in one way and make it worse in another. Listen to how it changes the sound and choose the best compromise.
Next I would turn up the bass till it starts feeding back. Align the notch filter with the feedback frequency and then turn the bass back down to a normal level. I don't understand why more notch filters are not built into preamps. In my experience, you don't hit the point of diminishing returns until you have applied anywhere from 4-6 notches.
Lastly fiddle with the Contour and Frequency controls. These controls are basically a variable frequency mid control. Most likely you will use them to apply a gentle cut to suppress feedback. As with the polarity control, you may find that Contour improves the sound in one way and makes it worse in another, so choose whichever compromise suits you best.
You may have to try a couple a times before you get a usable sound.
Since distance between the guitar and various sounds sources is a factor, consider changing location and moving your amp.
Another thing that can be helpful is a sound hole plug. I used to work with someone who played a nice Martin in our country band. We found that a sound hole plug made a huge improvement over the amplified sound. Gain before feedback was higher and the tone was better.