Those errors relate to a mis-configured server. Not related to cert expiry. I already described the line in nginx that needs fixing. But, if you need further help please show result of sudo nginx -T
command.
Either do this and upload config.txt
file
sudo nginx -T >config.txt
Or, copy/paste entire output (v long) with 3 backticks before and after
```
output of: sudo nginx -T
```