```python
def region_totals(grid: list, queries: list) -> list:
    if not grid or not grid[0]:
        raise ValueError("Invalid grid")
    
    rows, cols = len(grid), len(grid[0])
    for row in grid:
        if len(row) != cols:
            raise ValueError("Rows must have the same length")
        if not all(isinstance(cell, int) for cell in row):
            raise ValueError("All cells must be integers")
    
    prefix_sum = [[0] * (cols + 1) for _ in range(rows + 1)]
    for i in range(1, rows + 1):
        for j in range(1, cols + 1):
            prefix_sum[i][j] = grid[i - 1][j - 1] + prefix_sum[i - 1][j] + prefix_sum[i][j - 1] - prefix_sum[i - 1][j - 1]
    
    results = []
    for query in queries:
        if len(query) != 4:
            raise ValueError("Query must be a list of four integers")
        
        top, left, bottom, right = query
        if not (0 <= top < bottom <= rows and 0 <= left < right <= cols):
            raise ValueError("Invalid query range")
        
        total = prefix_sum[bottom][right] - prefix_sum[top][right] - prefix_sum[bottom][left] + prefix_sum[top][left]
        results.append(total)
    
    return results
```