“I am afraid of what happens to me if I leave. I have read that the punishment is death, and the fear will not let go of me.”
Start with the part of this that concerns you tonight, because it can be answered plainly. Having doubts is not an offence anywhere on earth. Reading this page is not an offence. Asking questions, privately or aloud, is not an offence. No law in any country reaches into a person's thoughts, and whatever you have read, nobody is coming for you because you are unsure.
In Malaysia specifically: apostasy is not a crime under the civil law, and no Malaysian state imposes death for it. What exists in some states are syariah provisions that engage only when a person formally seeks to change their registered religion, and what they prescribe is counselling and procedure. Contested cases have been fought in the courts over documentation and jurisdiction. None of this touches a person who is doubting, questioning, or reading.
The classical juristic position you encountered is real, and it is not the whole story. It was formed when leaving the religion meant defecting from a political community at war, and jurists across the centuries attached conditions, waiting periods, and distinctions to it. Contemporary scholars, including at major institutions, have argued that the ruling attaches to treason against a polity rather than to private belief, and that the Qur'anic principle that there is no compulsion in religion (2:256) governs. This is a live scholarly conversation, and anyone who told you it was closed has overstated their case in both directions.
Now the part that matters more. The fear you are describing is evidence about you, and what it evidences is that you have not left. A person who has genuinely walked away does not lie awake over the verdict of a tradition they no longer hold. The dread is attachment. Treat it as information, not as a sentence.
Do not carry this alone at 2am. Speak to one person you trust — a friend, a teacher whose knowledge you respect, anyone who has earned it. The fear shrinks when it is said aloud, and it grows in the dark. Your life is not the debate.