On the Windows 11 PC, map the share using explicit credentials so it does not reuse cached or incorrect ones. Start Command Prompt as Administrator and clear any existing connections:
net use * /delete
Then map the drive with the username and password from the Windows 10 PC:
net use Z: \\DINSHAH\C$ /user:DINSHAH\Username Password
Replace Username with the Windows 10 account name, and Password with that account's password. If the Windows 10 PC uses a Microsoft account, use the full email as the username.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin