Since it is changing when you move the brake pedal, the first thing I suggest is to inspect the brake pedal position sensor located at the top of the brake pedal. Make sure nothing is loose and the wiring connector is in good condition and not damaged.
I found the best pic I could for the location. See pic 1. It will have a connector containing 3 wires, so check that as well.
Let me know what you find or if you have other questions.
See pic below.
Tuesday, May 3rd, 2022 AT 6:52 PM