Since you have 2 identical circuits having the same issue, either you made the same mistake twice or it is an external factor causing the issue. Rule out the external factors first. which are guitar, cables and power supply. If you have alligator clips, connect battery to DC jack inside enclosure. Be careful, easy to short battery doing this. Try different cable and guitar. If you still have a whine then you will need to use an audio probe to find out where it starts in circuit. My guess is that the whine is always present, it just becomes noticeable when amplified by turning up the gain/level.