Thrustmaster brake pedal bug

I have been experiencing a problem with my Thrustmaster T3PA brake pedal for some time now and I’m fed up with it and it’s this when I use the brake pedal it’s fine but when I release it the game still thinks I’m pressing the brake. It’s difficult to explain but the brake lights are still on and the telemetry says the brake pedal is still being pressed when I’m not pressing it. It only happens in Forza Horizon 5 no-where else, I’m on Xbox and does anyone know how to fix the problem?