I don't have this exact problem, but I do notice you have to stay standing very close to the vehicle for the button on the hatch to work.
Sometimes, if I push the button and I'm not standing underneath the hatch, it won't close. Similarly, if I push the button and immediately step away, it won't work. I have to push the button, make sure it makes the correct noise that indicates the door will close, then step away before it bonks me on the head.
Also, I found the card key has a significantly shorter range than the fob. I've had trouble with my wallet blocking the signal from the card if it's sitting behind my wallet in my pocket, preventing me from unlocking the door and requiring me to get very intimate with my car. I've since just carried the fob instead and it works as normal.
Oh - one quick edit - also make sure there are no other keys in or around the vehicle - including your phone, if you have it set up with digital key. There's a sensitivity setting in the app digital key options if your car consistently thinks your phone is in the car when you're standing outside.