If you look at where pitot tubes are mounted in manned aviation, you’ll find them generally around the front of the aircraft. As your X8 travels through the air, the nose will send wave of turbulence. To picture this, think of the bow waves a boat creates as it’s propelled through water.
The further back you mount the sensor, the further away it will need to be from the body. Even at the front of the hatch, it’s going to need to be mounted a significant distance from the body based on my experiences. In addition, this position could causes issues when opening and closing the lid by either getting in the way, or becoming unknowingly disconnected.
My advice would be to mount it in the nose, with the front of the pitot tube projecting beyond the edge of the aircraft, with ~4" between the centre line of the pitot tube and the body.
If you decide to mount it in the lid, it will still function, but you may get inaccurate readings - particularly when your X8 is pitched up and the nose casts a turbulence ‘shadow’ over it.