Bug: pulling text into another document after selecting from one document can occasionally result in an infinite copy of

Please solve this problem

I am facing this same issue. Someone kissanime please help me. How to tackle it?