I'm probably going to get flagged for this, but here goes anyway.
Russia absolutely has reason to not want Ukraine to join NATO. I'm not condoning the invasion, but I say it absolutely makes sense for Russia to carry it out. Not a reason to commit war crimes, or to cause any more suffering than necessary, but from a national security perspective it makes sense to want to disrupt the process of Ukraine joining NATO.