ZeroDivisionError: float division by zero in Work order and Manufacture Stock entry

Unable to FINISH any Work Orders due to this error.
This error appeared since updating to
ERPNext: v12.4.2 (version-12)
Frappe Framework: v12.2.1 (version-12)

The same error appears if I try to manually make a Manufacture stock entry and reference any Work Order.
Please help.

Possible Reason:
Quantity or Rate field in some form is 0 and other calculated field uses this field as denominator and that is why this error is thrown
Check all the fields and set some value on it and try again

I doubled checked all fields. None of the fields are zero.
When I manually create Manufacture stock entry without linking the Work Order, it works fine.

Welcome to ERPNext

This report seems related Stock Entry: Manufacture - ZeroDivisionError: float division by zero - #6 by sorin_paul

Please post your full traceback in text form to compare and troubleshoot thanks