Exact analysis of the spectral properties of the anisotropic two-bosons Rabi model