Four people have been arrested at a prison in South Wales after concerns about the conduct of staff.