The problem is solved!
The problem was the PATH environment variable. When I tried to register a new SAP path it exceeded the OS limit.
I removed some unimportant paths and the installation was successful.
Thanks @markp-fuso
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…