Besse conjecture with vanishing conditions on the Weyl tensor