Raspberry Pi stops working daily

Use openhab-cli backup in shell to backup your OH config.
Read the docs and spend more work on a proper setup next time and include a (system) backup. See here.