This website has the code you're looking for:
https://www.wpfsharp.com/2012/02/03/how-to-disable-a-button-on-textbox-validationerrors-in-wpf/
For posterity the button code should look like this if you are using a ValidationRule override on the input fields: