The usual advice would be to request a return of excess contribution. I think you have until your tax filing deadline, with extension if you file for one to do this, so you've got time to figure things out and deal with it. If you do this timely, there's no penalty but you will owe tax on any earnings associated with the returned contribution.
You might consider upping traditional 401K or 403B or 457B contributions for the remainder of the year if you've got any room left there. Or an HSA if eligible. MAGI needs to be under $196K if you're married filing jointly, so if your gross income is $230K including the gain, you might get in under the wire.
A possible alternative if you cannot get your MAGI low enough - Do you have any traditional IRA money out there (SEP and SIMPLE IRAs do count for the purposes of what I'm about to propose)? If not, what you could do is this:
1. recharacterize the 2019 contribution to traditional.
2. Once that is done, convert the traditional IRA contribution (non deductible) to Roth
Basically a slightly more complicated backdoor Roth IRA. If you have any traditional IRA money out there, you'll run into pro-rata rules, so you'd have to take that into consideration.