Convert getSymbolSection to return an ErrorOr.