Getting the same post on my related post

I am displaying the related products on my single.php page.

I am getting two issues.

I tried the below code.