I realized that this was caused by a conflict between the motherboard's startup bios logo and the newer radeon 5500 xt video card. I disabled the logo in the bios settings and the problem disappeared. Everything works perfectly. There are no more artifacts on the screen.