The GLTF importer adds an extra frame to the animation sequence when the source animation is slightly above the target length. As seen in the image below the source animation length is 40.02 which should be 20 frames long in ue5, but it is rounded up to 21 because of the .02 decimals.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-363977 in the post.