W4 question

Spouse and I both have quite variable income.  Spouse has several employers so must fill out various W4's each year.  We have 1 dependent.  What is your advice on what to claim in order not to owe for underpayment penalty (this happened with our 2023 taxes, unfortunately).