How does the SAMD21 behave when it runs out of RAM?

if you know where the heap ends and you don't have dynamic allocations, you could probably write a bit of code to instrument / measure what happens to the stack through normal use. that would give you an idea if you are at risk or not