The support Max. capacity for one M.2 SSD is 1TB.
If you want to upgrade to a 2TB SSD for use, we cannot assess its stability and compatibility with your system.
And regarding the system installation, please refer to the following:
[Windows 11/10] How to create and use installation media to reinstall Windows 11/10 via USB drive