If possible, place your Pi closer to the router or in a position with fewer obstructions between it and the router and try again. It might simply be down to a weak signal or interference from something nearby.
Edit: This post gives details of debugging WiFi issues on OSMC but you’d need to have it connected by cable to the router before you can SSH to the Pi.