Scotland ‘risking a blackout’ in a bid to go green