That’s not a compositing error. That TIE is flying from the foreground into the background, in an opposite directon to the Falcon.
Shouldn’t they still be behind the Falcon though, based on their size? They’re clearly too small to be in front of the Falcon.