The widget was already added to the screen ERROR

I had a similar problem with the same error message, but I was calling Add to Viewport twice. This is how I solved it: