Why do widgets disappear after running out of battery?
Are you installing apps on your SD card? If so this is the main reason for this to happen. Apps having widget functionalities should be installed in phone storage . Some app even give you a small pop up saying

Widgets Functionalities might not work if you install this app in you external storage.

Hope This helped.