A vital piece of advice seems to have been removed from my earlier response.
There are thousands of washing machines available, all different, some with well known propensity to specific faults
You didn't state either the make nor model of your machine. Without that we are stuck.
Please re-post, giving the necessary information.
Ffghj
April 2022