Yeah so it's perfectly fine to stretch up 1 wheel size, though the tube won't be quite as durable for example when you hit a curb and the tube is pinched between tire and rim, but it's pretty minimal
You could also use larger tube in a smaller wheel by folding the tube a little bit. I've heard fitting a 29" tube on 24" kid's mountain bike just to finish a day.
TPU tubes you probably don't want to stretch on bigger wheel, but folding down to a smaller is perfectly fine
Aaaaaaanyways whenever you use "wrong" size tube, only do so if you just need to fix quick to keep on going. Grab a right size from a shop when you can and replace it.