The first thing to try is, turn it off and try new batteries. Also, make it a favorite in system preferences > bluetooth > highlight the device > click the gear icon below the list. If favorite doesn't show, click show more info and click the gear icon again.
If the problem remains, it's probably due to interference on the 2.4 Ghz band. See this article for troubleshooting.