Modifications will invalidate any warranty claims based on the part that been modified ie mapping an engine will invalidate the warranty on the engine and any associated parts (think fuelling etc)
Mapping an engine will not stop warranty claims on other parts of the vehicle (think bodywork, electrics, suspension etc etc)
Technically VW would need to show that the issue is a result of a modification that you have carried out to reject a warranty claim