Using the sequence {{#property:P1181}} or {{formatnum:{{formatnum:{{#property:P1181}}|R}}}}, the parser function formatnum will use non-breaking spaces. This creates some problems.
See for example w:no:Pi. In this case the number is so long it goes out of the right side of the page, even if it has “spaces”. This formatting (ie missing grouping after decimal point) is wrong in Norwegian according to Norsk språkråd.[https://www.sprakradet.no/sprakhjelp/Skriveregler/Dato/#store]
Another example is w:en:Euler–Mascheroni constant which has no visual thousand separator. Still, what they want to do at enwiki should be up to that project.
A simple solution would be to replace every fourth occurrence of a non-breaking space with an ordinary space, still not before there are at least eighth occurrences in the number. If so every fourth occurrence from the decimal point is replaced. This should leave most numbers unchanged, but still let very large numbers break as necessary.
(A better solution would be to always use medium mathematical space as this keeps the semantic info about this being a single number.)
For other languages a zero-width space could be injected after the thousand separator in a similar fashion. That can even work for languages that has no visible thousand separator.