Let's say you install the custom pedal and headlights stopped working, Tesla might cover the repair/replacement for the headlights, BUT Tesla also might deny the warranty claim that your custom pedal install caused the electrical issue.
As soon as you modify the car, your warranty is on the chopping block and it is totally depend on Tesla's discretion.