Parses the size string to extract the numeric size in GB. Returns -1 if the size cannot be parsed.
Handles formats like "14GB", "1.5GB", etc. If the size is in bytes (suffix "B"), converts to GB.