Hello, this is Emily.
OneDrive feature is not depending on which Windows you have, so there shouldn't be any difference between whether you run it on 10 or 11.
As for the 1TB vs. 5GB, what type of Office 365 license do you have? Is it a subscription? If so, make sure you sign in using the same Microsoft account on your OneDrive installed on Wndows 11 to get the 1TB.