You might add swap.
Also, see PostgreSQL 13 update.
Did you rebuild more than once?
See also Debian | endoflife.date
You really need to move everything to a new vm with a supported operating system. So you’ll also need to get whatever the other stuff you have running upgraded as well.