For the 4 groschen 1797 A, Krause lists it under Prussia (KM 362). Numista also lists it under Prussia.
https://en.numista.com/catalogue/pieces19271.html
Schon lists it under Poland, with a subheading mentioning South Prussia (Schon 97).
The sellers at MAshops seem to prefer Brandenburg-Prussia as the location.
What is most accurate?