```python
from typing import List

def region_totals(grid: List[List[int]], queries: List[List[int]]) -> List[int]:
    if not isinstance(grid, list) or not grid:
        raise ValueError("grid must be a non-empty list of rows")
    width = len(grid[0]) if isinstance(grid[0], list) else 0
    if width == 0:
        raise ValueError("rows must be non-empty lists")
    
    for row in grid:
        if not isinstance(row, list) or len(row) != width:
            raise ValueError("rows must all share one length")
        for cell in row:
            if isinstance(cell, bool) or not isinstance(cell, int):
                raise ValueError("cells must be integers")
    
    # Build a prefix-sum table over the grid
    prefix_sum = [[0] * (width + 1) for _ in range(len(grid) + 1)]
    for i in range(1, len(grid) + 1):
        for j in range(1, width + 1):
            prefix_sum[i][j] = (prefix_sum[i - 1][j] +
                            prefix_sum[i][j - 1] -
                            prefix_sum[i - 1][j - 1] +
                            grid[i - 1][j - 1])
    
    def query_totals(top: int, left: int, bottom: int, right: int) -> int:
        if not (0 < top <= len(grid) and
                0 < left <= width and
                0 < bottom <= len(grid) + 1 and
                0 < right <= width + 1):
            raise ValueError("queries must be within grid boundaries")
        
        return prefix_sum[bottom][right] - \
               prefix_sum[top][right] - \
               prefix_sum[bottom][left] + \
               prefix_sum[top][left]
    
    # Validate each query and answer it from the table
    result = []
    for query in queries:
        if not isinstance(query, list) or len(query) != 4:
            raise ValueError("queries must be lists of exactly four integers")
        
        top, left, bottom, right = query
        
        result.append(query_totals(top, left, bottom, right))
    
    return result
```