Random Krypton crashes

I’ve been using Krypton 17.1 for some time now and loving it! I have though ran into a bug, and I’m not sure what to do or how to fix it. This error was causing Kodi to randomly shut down. I wanted to attach a picture, but I don’t have an outside website to store it. The error is “XBMCFoundation.Kodi_4n2hpmxwrv6p!Kodi has stopped working” Then of course Windows a problem cause the program from working properly and it was closing it down.

How can I fix this?