HA Server Stopped Working & Giving Errors

I’m having a problem with my Pi based HA Server!
After working ok for over a year, my server stopped working some weeks ago. I was unable to determine the reason so I left it switched off. I came back to it yesterday and powered it up when it worked ok for a while but then stopped working.

Please can you tell me how to investigate & diagnose the problem? I can see there’s a log being sent to the screen but don’t know how to capture.

Many thanks

John

The logs are stored in the folder where configuration.yaml lives. Home-assistant.log.1 and home-assistant.log.