The quadrilaterals in your grid does not look affine (not all of them are parallelograms as far as I can tell), which changes the quadrature degree required.
You can use any of the quadrature rules defined in basix, or use your own,
See:How to choose a specific quadrature rule? - #6 by dokken
or Total number of gauss point - #2 by dokken