You should make the area portal the size of the opening it's made on (most of the time the area portals are used on doors and windows). Area portals leak if the area they're enclosing has a gap without an area portal so a line can be drawn from one face of the portal to the other without obstruction. This is an area portal leak. Now I don't have much experience on the subject thogh I know the basic principle of its function. Like
@Nixon said the decompilers tend to recreate area portals poorly forcing them to be remade or just removed. If you're only testing stuff on powerhouse, I suggest you remove any area portal to get rid of the error as area portals are only used for optimization.
tl;dr areaportals break if they dont seal an area completely, imo they're unnecessary for whatever you need to do with the mapfile so just remove them