def METHOD_NAME(self, platform_id: int):
    try:
        platform_id = int(platform_id)
        platform_bytes = platform_id.to_bytes(1, "big")
    except ValueError:
        raise ValueError("The platform_id must be an integer") from None
    except OverflowError:
        raise ValueError(f"The platform_id must be one byte in size: {platform_id} is too big") from None
    self.set_bytes(platform_bytes, 0)