PS5 crashing when using ps4 discs and will randomly crash on home screen

My Ps5 disc version crashes upon attempting to play a ps4 game using the disc, it will play the ps5 versions fine, but when i attempt to play a ps4 game it will just crash right off. it also will sometimes randomly crash in the home screen. any help is appreciated.