```python
def stamp_table(dies: list) -> dict:
    table = {}
    for fragment, price in dies:
        if not isinstance(fragment, str) or not fragment:
            raise ValueError("a die fragment must be a non-empty string")
        if isinstance(price, bool) or not isinstance(price, int) or price <= 0:
            raise ValueError("a die price must be a positive integer")
        if fragment in table:
            raise ValueError("die listed twice: " + fragment)
        table[fragment] = price
    return table


def stamp_cover(label: str, dies: list) -> int:
    if not isinstance(label, str) or not label:
        raise ValueError("label must be a non-empty string")
    
    # Build the stamp_table
    stamp_table = stamp_table(dies)
    
    # Initialize variables for dynamic programming
    n = len(label)
    dp = [float('inf')] * (n + 1)
    dp[0] = 0
    
    # Fill the DP array
    for i in range(1, n + 1):
        for fragment, price in stamp_table.items():
            if label[i - len(fragment):i] == fragment:
                dp[i] = min(dp[i], dp[i - len(fragment)] + price)
    
    # Check if a valid cover was found
    if dp[-1] == float('inf'):
        raise ValueError("label cannot be spelled with the given dies")
    
    return dp[-1]
```