In the US, there's a federal law that prevents a car manufacturer from denying a warranty claim unless work done can be directly related to the failure. IOW, if the work was done properly, and did not cause the issue, they can't deny warranty work. Not sure anyone makes a non-OEM windshield, but there are places that will install them outside of the dealer network.
2014 i3 BEV, 2021 X5 45e
(The i3 will be sold soon, <17K-miles, interested?)