Looked at this issue a bit more found out that Visual studio build tools and visual studio 2019 is still supports win 7 sp1 will all the last updates and hotfixes, Visual Studio 2019 System Requirements | Microsoft Learn though win7 support ended in 2020 Windows 7 support ended on January 14, 2020 - Microsoft Support
I have corrected tool chain post above to say that issue is with engine version, sorry for error.
I remember a system having win7 and ue4.24 or ue4.25 last year. Unreal started having issue with win7 after support ended, with 4.25.0 release Unreal Engine 4.25 and Windows 7 compatibility and got a fix in 4.25.2 4.25.2 Hotfix released
Again it started having trouble after 4.26 release (see link in above post). Anway its better to stick with 4.25 and go directly to ue5 as 4.26 still has a lot of issues. May be best version for production after 4.17 is 4.25.3