This is expected - jit_compile=True uses XLA 2. There is no supported XLA lowering for tf.py_function and so it raises: tf.function  |  TensorFlow Core v2.6.0 1
The error is telling you XLA_GPU_JIT has no supported kernel/lowering for py_function. Is there a reason you need to use jit_compile=True?