Hi Saurabh Jain2,
Thank you for reaching Microsoft Community. We appreciate for sharing your concern to us.
Your Surface laptop Go 2's SSD can be upgraded and should not void the device warranty. However, SSD removal is intended only for use by qualified IT technicians in an enterprise organization. When removing and replacing SSDs, it specifies the best methods that knowledgeable IT personnel should follow.
Opening devices and replacing components can present electric shock, device damage, fire, personal injury risks, and other hazards.
For more details, see SSD removal in compatible Surface devices - Surface | Microsoft Learn.
Kind regards,
Lavenia