ccleaner causes windows 10 to crash

After I've run the analysis and then run the system starts to run and then crashes after about 40%

Have you also ran the registry cleaner? Seems cleaning the registry in Win10 is something to hold off from doing or not doing at all.

If it's happening during analysis, it may be your antimalware software.