Yes, the Intel i5 10400F should function properly on the GIGABYTE B365M DS3H motherboard.
Yes, the Intel i5 10400F should function properly on the GIGABYTE B365M DS3H motherboard.
It seems the processor requires LGA1200 while the motherboard supports LGA1151.