Deductions & credits

Did you try calculating your taxes without using the FEIE?

Without using the FEIE, you can use all the Form 1116 for all your income i.e. both wages (General Category) and Cap Gains, Dividends, etc. (Passive Category).  This may be more favorable to you and you can make your choice on which to use.  This works in some cases.