Will I lose my landline number during the PSTN switch off?

No. Your phone number can stay the same whether you stay with your existing provider or if you move to a new low-cost full fibre provider like Community Fibre. Your number stays with you, not your provider, so you can take the number with you. What changes is the technology carrying your calls, not the number itself.