fix: resolve open CodeQL code scanning alerts (75-79) (#2919)