Illegal instruction (core dumped) on Simple Commands

Hi, Im using rpi 3 booted from SD card. hass and related apps are run in docker. volumes are in SSD.
home assistant is running as usual but I cant use sudo anymore.
I am hesitant to replace the SD and reinstall hass if there is a quick way to fix this.

What operating system are you using?

Ubuntu 20.
I cant do any commands with sudo even update.