Potentially you could buy a data only SIM card. For example https://www.ebay.co.uk/itm/224518697527 is £45 for 24GB valid for 24 months (so 1GB for £2). But I’m not entirely sure that allows incoming calls, or outgoing texts. Also it is difficult to know if this will still be a suitable amount of data for the next 2 years