Hi Timur,
Background calibration can help to solve such problems but it’s not a perfect solution for RealSense D415. The recommended distance between this sensor and a user for this sensor is about 1-1.5 meters. Skeleton tracking at greater distances can be unstable.
Skeleton tracking quality depends on the quality of a depth map. If possible, you can try to use other sensors (such as Orbbec Astra/Astra Pro or ASUS Xtion), which provide good quality of a depth map.
You can also try to use post-processing filters with D415 to improve the tracking quality. To do this, you have to edit nuitrack.config:
Also please try to run any standard sample (for example, nuitrack_sample) to check background calibration. Do you get the same result?