Yes , the short snippet from Erel does create a panic when trying to copy a string to a string.
I don't have B4R installed here, and so I can't test it.
But I know that when strange things happen during programming, and especially if there are deadlines creeping up,, it is easy to miss simple checks.
The first check here would be to start a brand new empty app and test Erel's snippet just by itself. If that also causes the same error, when that error didn't happen with the previous Arduino and B4R versions, then either there is a bug in one of those that Erel will fix, or a change in one of those that I'm sure Erel or another B4R expert will produce an updated snipped to work around whatever's changed.
That requirement that the string literals need to be unique, is a bit of a trap. Double-check those in your code. Make sure they are completely different so that there is no way that optimisation can possibly use one string in memory for two (supposedly) separate strings. It's a good optimisation, but only as long as the strings are constant and never get changed.