Use Heaptrack or Valgrind to asses KStars memory use in various scenarios including using Ekos with full capture/guide/focus/align activity.
The goal is to determine any abnormal memory use, or any memory leaks and to pin them down to the likely cause.