uweenisirindu Do you have a record for www in DNS?
You should not remove the www record in DNS if you have, if you miss it than you need create a DNS record for www that point as the record you have for your domain without the www.
Maybe after done this you need regenerate let's encrypt certificate if you can. From where you issued the certificate: a control panel?