There is no set time limit while you are alive and of sound mind. You can revoke or change your Will whenever you wish (sections 14 and 15 of the Wills Act 1959). After you die, the Will can no longer be changed by you. Beneficiaries and executors can only follow it, or ask the court to decide a dispute. This applies to non-Muslims in Peninsular Malaysia. Muslim estates follow Islamic law.
Related: Can I revoke or change my Will after it is signed?
Legal basis and further reading
General information for Malaysia, not legal advice. For your own situation, speak to a lawyer.