Hello,
When did the shutdown issue first start occurring?
If a system restore point is available, please try performing a System Restore and check whether the PC can shut down normally afterward.
For instructions on System Restore, refer to the section “Apply a restore point from the Windows Recovery Environment (RE)” in the support article below.