On the resurgent structure of quantum periods