Hello,
I am sorry that happened to you. If you do not have dependents then I do recommending updating W4 to include zero. That will help with withholding shortage. In addition, if you have multiple jobs or additional income you will want to update your W4 with employer to include those items. I will include below a refund calculator, W4 calculator, and how to estimate your taxes to become pro active and ensure the same situation does not repeat. Best regards!
Tax Caster
W4 Calculator
How to Estimate Federal Withholding