Most likely, your machine is running out of resources during synchronization, so the program trips a "self-hang" state where it waits for sufficient resources. There are instances where this leads to a complete system lock.
It is important to make sure that your computer has the sufficient resources to synchronize and manage a Bitcoin node. Your machine should have at least 1TB of space and 8GB of RAM to comfortably synchronize with the Bitcoin network.