https://www.reddit.com/r/USCIS/s/kQ2hLPsn44
In today's thread, two people (pure W-2 workers) were denied N-400 because they had underpayment penalties for quarters when they didn't pay enough tax due to stock sales and other reasons—even though they paid everything in full by 4/15.
Anyone in a similar situation should first check their IRS account for any outstanding tax debt or unpaid penalties—even penalties that have already been paid off may remain on your record for a period of time. Also, when filing taxes, try to use the safe harbor rule to avoid underpayment, for example by making estimated payments equal to 110% of last year's tax liability. Before the interview, you may also want to pull a tax transcript to confirm there is no outstanding balance.