AMC 12B 2021 Spring Problem 18

Let z be a complex number satisfying
12|z|^{2}=2|z+2|^{2}+\left|z^{2}+1\right|^{2}+31.
What is the value of z+\dfrac{6}{z} ?

Answer Choices
A. -2
B. -1
C. \dfrac{1}{2}
D. 1
E. 4