The correct spelling for "leaivng" is "leaving". To avoid this misspelling, double-check the letters before finalizing any written piece. Additionally, relying on spell-check tools and proofreading can help identify and rectify errors. Developing good spelling habits through practice and regular reading can greatly enhance written communication skills.