What is this dashed box and how can I turn it off?
It looks like you pressed ShiftT which enables texture space display and translates/grabs it.

You can disable Texture space display in Properties > Object > Display:



In case you accidentally translated it, you may want to set it back to 0,0,0 in Properties > Object data > Texture space and re-enable Auto texture space: