NFC Error

When i write text record on nfc tag, sometimes success but sometimes gives me error below.

Error: Error Domain=NFCError Code=401 "Stack Error" UserInfo={NSLocalizedDescription=Stack Error, NSUnderlyingError=0x2822f9a10 {Error Domain=nfcd Code=21 "writeNdefData:toTag:error::360" UserInfo={Line=360, NSLocalizedDescription=Connection Closed, NSDebugDescription=writeNdefData:toTag:error::360, Method=writeNdefData:toTag:error:}}}

I don't know why this error sometimes occur. What is the meaning of "Connection Closed"? And how can I solve the issue?

Did you ever figure out a solution to this, or the reason behind it? I am facing this as well

Did anyone find the solution for this yet?

NFC Error
 
 
Q