Which slot is the HBA installed on?
From the ML350 Gen 10 quickspecs, slots 2 and 4 are only x4 electrical width (even though physical it is x8). See page 9 of https://www.hpe.com/psnow/doc/a00021852enw.pdf While the H241 is a x8 PCIe card; see page 2 of https://www.hpe.com/psnow/doc/c04346305
Try using either slots 1 or 3 if the system has only one CPU. If the system has a 2nd CPU, try slots 5 through 8.
Make sure there is no PCIe lane sharing between slots. You need to dig in to the manual of ML350 Gen 10 server to confirm if there is any PCIe lane sharing between slots based on the CPU the system has.
Also in case the system has dual CPUs, try setting VM CPU affinity to the correct CPU (slots 1 or 3 set vCPU affinity to Processor 1, slots 5-8 set vCPU affinity to Processor 2) as there is no PCIe electrical pathway for slots 1-4 to Processor 2 and slots 5-8 has no electrical pathway to Processor 1.