Second seed Sara Errani endured a real scare before coming through her first round match at the season-opening Shenzhen Open in China.