Linking axion-like dark matter to neutrino masses