You could consider using conditional logic to check if the tab is validated when a custom button is clicked and if so, do Tab –> Click in the THEN statement of the next tab.
So in pseudo:
IF Custom Button –> Clicked AND Current Tab –> Validated THEN Next Tab –> Click