Downloading knots to raspberry pi5 issues

Im building my first ever bitcoin node. I’ve ready many different “solutions” to my problem and nothing has helped. Im at a dead end. I can not download either bitcoin knots or bitcoin core. I keep getting “corrupted block database detected” failure notifications. I’ve not been able to synchronize the block chain to 100% I’ve deleted app restarted the download. I’ve done the advanced code of raindex and nothing had worked. Its s 16 GB Ram raspberry pi5 with a 2tb ssd card. I really need the help.