Thanks for the clarification.
No problem. Let's follow this lead, as it's promising.
I suggest performing a clean install of the Nvidia driver as instructed below.
Download the latest driver for your graphics card from the computer manufacturer's website. Then, use the free DDU tool to remove the current driver. Then, install the latest driver using the installer you downloaded.
I suggest disconnecting from the internet during the entire procedure.
(Turn off Wi-Fi or disconnect the Ethernet cable.)
DDU: https://www.guru3d.com/files-details/display-driver-uninstaller-download.html
Nvidia driver download: https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/5-series/ideapad-pro-5-16akp10/83jn/downloads/driver-list/component?name=Display%20and%20Video%20Graphics&id=635380F4-448F-4129-AA77-265289D96F6F
Driver name: NVIDIA VGA Driver Windows 11 (64-bit) - IdeaPad Pro 5 16AKP10, IdeaPad Pro 5 16ASP10
(For laptops, it is recommended to use the latest Nvidia driver provided by the laptop manufacturer.)
If you have the Nvidia app installed, disable the automatic driver updates in the application settings.
See if the system will crash when closing the lid.
If the crash occurs again after doing this, please let me know.
If you need a tutorial for using DDU, I recommend the video below.
https://www.youtube.com/watch?v=bP-2B14Nckw
Feel free to ask any questions you may have.
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.