Take a 12-month policy, paid monthly and cancel when you no longer need it. But take note: simply cancelling your direct debit doesn’t mean you’ve cancelled the policy. Tell your insurer you want to cancel and get confirmation from them, otherwise they might chase you for unpaid premiums.
You may still be liable for a cancellation fee, so before you take out the policy, read the small print to see how much it will cost.